<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">

  <div class="wrap J_check_wrap">
    <?php include $this->getViewFile('/common/Nav') ?>

     <!-- 搜索 -->
    <div class="h_a">查找</div>
    <?php $objForm = $this->beginWidget('CActiveForm', array('id' => 'searchForm','method' => 'get', 'action' => $this->createUrl(ACTION_NAME))); ?>
      <div class="search_type cc mb10">
           <div class="mb10">
            模块：<?php echo $objForm->dropDownList($model,'ModuleID',ModuleModel::getFieldList('Title'), array('name' => 'ModuleID','empty' => '全部')); ?>&nbsp;&nbsp;&nbsp;&nbsp;
            <button class="btn">搜索</button>
          </div>
      </div>
    <?php $this->endWidget(); ?>


    <!-- 列表 -->
    <div class="mb10"> 共有 ( <b><?php echo $count; ?></b> ) 条记录</div>
    <form name="myform" action="" method="post" class="J_ajaxForm">
      <div class="table_list">
        <table width="100%" cellspacing="0">
          <thead>
            <tr>
              <td width="10%" align="center"><?php echo $model->getAttributeLabel('TagID'); ?></td>
              <td align="center"><?php echo $model->getAttributeLabel('Title'); ?></td>
              <td align="center"><?php echo $model->getAttributeLabel('AddTime'); ?></td>
              <td align="center"><?php echo $model->getAttributeLabel('Sorting'); ?></td>
              <td>操作</td>
            </tr>
          </thead>
          <tbody>

             <?php foreach($data as $rs){ ?>
             <tr>
                <?php //include $this->getViewFile('data'); ?>
                <td width="" align="center"><?php echo $rs->TagID; ?></td>
                <td align="center"><?php echo $rs->Title?></td>
                <td align="center"><?php echo date('Y-m-d', $rs->AddTime)?></td>
                <td align="center"><?php echo  $rs->Sorting; ?></td>
                <td align="center">
		<?php  
		    $op = array();
        $op[] = '<a class="J_dialog" width="1000" height="600" href="'.AdminBase::U("admin/tag/showGoods",array('id'=>$rs->TagID)).'" >查看</a>';
        $op = implode('|', $op);
        echo $op;
		 ?>           

     </td>   
              </tr>
             <?php } ?>

          </tbody>
        </table>

        <!-- 分页 -->
        <div class="p10">
          <div class="pages"><?php echo $Page;?></div>
        </div>        
      </div>
    </form>
  </div>

</body>
</html>